package com.example.fresh_fruit.service.Impl;

import com.example.fresh_fruit.entity.BusinessPersion;
import com.example.fresh_fruit.mapper.BusinessPersionMapper;
import com.example.fresh_fruit.service.BusinessPersionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author :飞天の鱼
 * @date : 2022/8/21 23:54
 */
@Service
public class BusinessPersionServiceImpl implements BusinessPersionService {

    @Autowired
    private BusinessPersionMapper  businessPersionMapper;
    @Override
    public List<BusinessPersion> selectAll() {
        return businessPersionMapper.selectAll();
    }

    @Override
    public boolean find(Integer persionId, Integer id) {
        return businessPersionMapper.findById(id);
    }
}
